package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingLevelPageQueryDto;
import com.zzyl.entity.nursing.NursingProjectPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {
	/**
	 * 批量保存
	 * @param projectPlans
	 */
	void batchInsertList(@Param("list") List<NursingProjectPlan> projectPlans);
	
	/**
	 * 根据动态条件查询
	 * @param nursingProjectPlan
	 * @return
	 */
	List<NursingProjectPlan> selectList(NursingProjectPlan nursingProjectPlan);
	
	/**
	 * 根据条件动态删除
	 * @param nursingProjectPlan
	 */
	void deleteBy(NursingProjectPlan nursingProjectPlan);

	void InstsNursingPlan(@Param("list") List<NursingProjectPlan> list);

	Page<NursingPlanVo> selectsNationList(String name, Integer status);
	@Select("select * from nursing_project_plan  where plan_id = #{id};")
	List<NursingProjectPlan> cxidNationList(Integer id);

	void updataNationList(@Param("list") List<NursingProjectPlan> list);
	
	
	
@Delete("DELETE FROM nursing_project_plan where plan_id = #{id}")
	void DeleteNationList(Integer id);

	
}